package org.example;

public class Client {
    public static void main(String[] args) {
        DataSupplier supplier = new DataSupplier();
        Dao proxy = new DBProxy(supplier);
        Dao concreteDao = new ConcreteDao(supplier);

        System.out.println(proxy.getData(1));
        System.out.println(proxy.getData(1));
        System.out.println(proxy.getData(3));

        System.out.println(concreteDao.getData(2));
    }
}